﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainTemplate.Master" AutoEventWireup="true" CodeBehind="AccountsManagement.aspx.cs" Inherits="SmartCounters.AccountsManagement" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ScriptsAndStylesPlaceHolder" runat="server">
	<link rel="stylesheet" type="text/css" href="/css/AccountsManagement.css" />
	<script type="text/javascript" src="/Scripts/AccountsManagement.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
Accounts Management
</asp:Content>

<asp:Content ID="AccountsManagement" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<asp:UpdatePanel ID="AccountsManagementUpdatePanel" runat="server">
<ContentTemplate>
	<div>
		<asp:Button class="Button" ID="btNewAccount" Text="New Account" runat="server"  />
	</div>
	<asp:DataGrid 
		id="AccountsGrid" 
		CssClass="DataTable"
		BorderStyle="None" 
		GridLines="None"
		UseAccessibleHeader="true" 
		AutoGenerateColumns="false"
		HeaderStyle-HorizontalAlign="Left" 
		onEditCommand="EditCommand"
		OnItemCommand="ItemCommand"
		runat="server">
                  
	<HeaderStyle CssClass="Header" />      
                  
	<Columns>
		<asp:EditCommandColumn 
			ItemStyle-CssClass="Button InputFullWidth"
			HeaderText="Edit"
			ButtonType="PushButton" 
			EditText="Edit" 
			HeaderStyle-Width="5%" />
		<asp:ButtonColumn 
			ItemStyle-CssClass="Button InputFullWidth"
			HeaderText="Delete" 
			ButtonType="PushButton" 
			Text="Delete" 
			CommandName="DeleteCommand"
			HeaderStyle-Width="5%">
		</asp:ButtonColumn>  
		<asp:BoundColumn HeaderText="ID" DataField="AccountID" HeaderStyle-Width="10%" ReadOnly="true"  />
		<asp:BoundColumn HeaderText="Country" DataField="Country" HeaderStyle-Width="10%" />
		<asp:BoundColumn HeaderText="City" DataField="City" HeaderStyle-Width="10%" />
		<asp:BoundColumn HeaderText="Street" DataField="Street" HeaderStyle-Width="30%" />
		<asp:BoundColumn HeaderText="House" DataField="House" HeaderStyle-Width="10%" />
		<asp:BoundColumn HeaderText="Apartment" DataField="Apartment" HeaderStyle-Width="5%" />
		<asp:BoundColumn HeaderText="Longitude" DataField="Longitude" HeaderStyle-Width="5%" />
		<asp:BoundColumn HeaderText="Latitude" DataField="Latitude" HeaderStyle-Width="10%" />
	</Columns>
	</asp:DataGrid>

</ContentTemplate>
<Triggers>
</Triggers>

</asp:UpdatePanel>
</asp:Content>
